package org.csmzxy.class2334;
import javax.swing.plaf.basic.BasicInternalFrameTitlePane;
import java.util.Scanner;
public class sxhs {
    public static void main(String []args){
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入一个三位数:");
        int number = scanner.nextInt();
        if (number < 100 || number >= 1000){
            System.out.println("不是三位数");
            return;
        }
        int bw = number / 100;
        int sw = number / 10 % 10;
        int gw = number % 10;
        if (bw*bw*bw + sw*sw*sw + gw*gw*gw == number){
            System.out.println("这个数是水仙花数");
        }
        else{
            System.out.println("这个不是水仙花数");
        }
    }
}